package com.atguigu.gmall.executor;

import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

public class MyExecutor {
    private static ThreadPoolExecutor myExecutor = new ThreadPoolExecutor(4,
            8,
            10,
            TimeUnit.SECONDS,
            new ArrayBlockingQueue<>(10));

    private MyExecutor() {
    }
    public static ThreadPoolExecutor getInstance(){
        return myExecutor;
    }

}
